package com.atguigu.common.util;

import com.github.javafaker.Faker;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.Locale;

@Component
public class DataFaker {
    @Bean
    public Faker getFaker() {
        return new Faker(Locale.CHINA);
    }

}
